﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="NewCurrentItemsByCategory" targetNamespace="http://tempuri.org/NewCurrentItemsByCategory.xsd" xmlns:mstns="http://tempuri.org/NewCurrentItemsByCategory.xsd" xmlns="http://tempuri.org/NewCurrentItemsByCategory.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="KorleBu_STA_InvetoryConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="KorleBu_STA_InvetoryConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.KorleBu_STA_InvetoryConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="sp_reports_currentItemsByCategoryTableAdapter" GeneratorDataComponentClassName="sp_reports_currentItemsByCategoryTableAdapter" Name="sp_reports_currentItemsByCategory" UserDataComponentName="sp_reports_currentItemsByCategoryTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="KorleBu_STA_InvetoryConnectionString (Web.config)" DbObjectName="KorleBu_STA_Inventory2.dbo.sp_reports_currentItemsByCategory" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="StoredProcedure" ModifiedByUser="false">
                    <CommandText>dbo.sp_reports_currentItemsByCategory</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@categoryID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="rowNumber" DataSetColumn="rowNumber" />
              <Mapping SourceColumn="TransactionDate" DataSetColumn="TransactionDate" />
              <Mapping SourceColumn="ItemID" DataSetColumn="ItemID" />
              <Mapping SourceColumn="ItemName" DataSetColumn="ItemName" />
              <Mapping SourceColumn="TransactionQty" DataSetColumn="TransactionQty" />
              <Mapping SourceColumn="StoreName" DataSetColumn="StoreName" />
              <Mapping SourceColumn="ItemCategoryName" DataSetColumn="ItemCategoryName" />
              <Mapping SourceColumn="VendorName" DataSetColumn="VendorName" />
              <Mapping SourceColumn="VendorCost" DataSetColumn="VendorCost" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="NewCurrentItemsByCategory" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="NewCurrentItemsByCategory" msprop:Generator_UserDSName="NewCurrentItemsByCategory">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="sp_reports_currentItemsByCategory" msprop:Generator_TableClassName="sp_reports_currentItemsByCategoryDataTable" msprop:Generator_TableVarName="tablesp_reports_currentItemsByCategory" msprop:Generator_TablePropName="sp_reports_currentItemsByCategory" msprop:Generator_RowDeletingName="sp_reports_currentItemsByCategoryRowDeleting" msprop:Generator_RowChangingName="sp_reports_currentItemsByCategoryRowChanging" msprop:Generator_RowEvHandlerName="sp_reports_currentItemsByCategoryRowChangeEventHandler" msprop:Generator_RowDeletedName="sp_reports_currentItemsByCategoryRowDeleted" msprop:Generator_UserTableName="sp_reports_currentItemsByCategory" msprop:Generator_RowChangedName="sp_reports_currentItemsByCategoryRowChanged" msprop:Generator_RowEvArgName="sp_reports_currentItemsByCategoryRowChangeEvent" msprop:Generator_RowClassName="sp_reports_currentItemsByCategoryRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="rowNumber" msdata:ReadOnly="true" msprop:Generator_ColumnVarNameInTable="columnrowNumber" msprop:Generator_ColumnPropNameInRow="rowNumber" msprop:Generator_ColumnPropNameInTable="rowNumberColumn" msprop:Generator_UserColumnName="rowNumber" type="xs:long" minOccurs="0" />
              <xs:element name="TransactionDate" msprop:Generator_ColumnVarNameInTable="columnTransactionDate" msprop:Generator_ColumnPropNameInRow="TransactionDate" msprop:Generator_ColumnPropNameInTable="TransactionDateColumn" msprop:Generator_UserColumnName="TransactionDate" type="xs:dateTime" />
              <xs:element name="ItemID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_ColumnVarNameInTable="columnItemID" msprop:Generator_ColumnPropNameInRow="ItemID" msprop:Generator_ColumnPropNameInTable="ItemIDColumn" msprop:Generator_UserColumnName="ItemID" type="xs:int" />
              <xs:element name="ItemName" msprop:Generator_ColumnVarNameInTable="columnItemName" msprop:Generator_ColumnPropNameInRow="ItemName" msprop:Generator_ColumnPropNameInTable="ItemNameColumn" msprop:Generator_UserColumnName="ItemName">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TransactionQty" msprop:Generator_ColumnVarNameInTable="columnTransactionQty" msprop:Generator_ColumnPropNameInRow="TransactionQty" msprop:Generator_ColumnPropNameInTable="TransactionQtyColumn" msprop:Generator_UserColumnName="TransactionQty" type="xs:int" />
              <xs:element name="StoreName" msprop:Generator_ColumnVarNameInTable="columnStoreName" msprop:Generator_ColumnPropNameInRow="StoreName" msprop:Generator_ColumnPropNameInTable="StoreNameColumn" msprop:Generator_UserColumnName="StoreName">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ItemCategoryName" msprop:Generator_ColumnVarNameInTable="columnItemCategoryName" msprop:Generator_ColumnPropNameInRow="ItemCategoryName" msprop:Generator_ColumnPropNameInTable="ItemCategoryNameColumn" msprop:Generator_UserColumnName="ItemCategoryName">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="VendorName" msprop:Generator_ColumnVarNameInTable="columnVendorName" msprop:Generator_ColumnPropNameInRow="VendorName" msprop:Generator_ColumnPropNameInTable="VendorNameColumn" msprop:Generator_UserColumnName="VendorName">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="VendorCost" msprop:Generator_ColumnVarNameInTable="columnVendorCost" msprop:Generator_ColumnPropNameInRow="VendorCost" msprop:Generator_ColumnPropNameInTable="VendorCostColumn" msprop:Generator_UserColumnName="VendorCost" type="xs:decimal" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:sp_reports_currentItemsByCategory" />
      <xs:field xpath="mstns:ItemID" />
    </xs:unique>
  </xs:element>
</xs:schema>